package org.example.ioc.pro1.bean;

import org.springframework.stereotype.Component;

@Component  //将这个类交给Spring管理 IOC管理，成为一个Bean   <bean id="bankMysqlDao" class="org.example.pro1.bean.BankMysqlDao"/>
public class BankMysqlDao implements BankDao{
    @Override
    public void deposit() {
        System.out.println("Mysql存款");
    }

    @Override
    public void withdraw() {
        System.out.println("Mysql取款");
    }
}
